package com.jdk8.demo;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Java8_Stream_Filter {
	public static void main(String[] args) {
	
		//留下偶数(filter)
		Integer[] sixNums = {1, 2, 3, 4, 5, 6};
		Stream.of(sixNums).filter(n -> n%2 == 0).forEach(e->{
			
			
		});
		
		
	}

}
